# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=systemdgenie
pkgver=0.99.0
pkgrel=4
pkgdesc="Systemd management utility"
arch=(loong64 x86_64)
url='https://cgit.kde.org/systemdgenie.git/'
license=(GPL)
depends=(kxmlgui)
makedepends=(extra-cmake-modules)
source=("https://download.kde.org/unstable/$pkgname/$pkgname-$pkgver.tar.xz")
sha256sums=('22ebd9d6da7f03399603e21e3e21d69cbe87ec49695d12a15e9dda6b23703f25')

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$pkgname-$pkgver \
   -DCMAKE_INSTALL_PREFIX=/usr \
   -DCMAKE_INSTALL_LIBDIR=lib \
   -DBUILD_TESTING=OFF
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}
